import request from '@/utils/request'

export default {
  //查询
  getUserList(page,limit,userQuery){
    return request({
      url: `/educenter/userAdmin/pageUserCondition/${page}/${limit}`,
      method: 'post',
      //data表示把对象转换json进行传递到接口里面
      data:userQuery
    })
  },
  //添加
  /*addUser(ucenterMember){
    return request({
      url: `/educenter/userAdmin/addUserInfo`,
      method: 'post',
      //data表示把对象转换json进行传递到接口里面
      data:ucenterMember
    })
  },*/
  //删除
  deleteUserId(userId){
    return request({
      url: `/educenter/userAdmin/deleteUser/${userId}`,
      method: 'delete',
    })
  },
  //修改
  /*editUser(ucenterMember){
    return request({
      url: `/educenter/userAdmin/updateUserInfo`,
      method: 'post',
      //data表示把对象转换json进行传递到接口里面
      data:ucenterMember
    })
  },
  //修改轮播图
  editUserById(userId){
    return request({
      url: `/educenter/userAdmin/getUserInfoById/${userId}`,
      method: 'get',
    })
  }*/
}
